package com.dtzhejiang.social.supervision.risk.engine.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dtzhejiang.social.supervision.risk.engine.common.domain.po.SpiderHospitalLicenseMatchEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SpiderHospitalLicenseMatchMapper extends BaseMapper<SpiderHospitalLicenseMatchEntity> {
    int deleteByPrimaryKey(Long id);

    int insert(SpiderHospitalLicenseMatchEntity record);

    /**
     * 批量插入
     * @param licenseMatches
     * @return
     */
    int batchInsert(@Param("list") List<SpiderHospitalLicenseMatchEntity> licenseMatches);

    int insertSelective(SpiderHospitalLicenseMatchEntity record);

    SpiderHospitalLicenseMatchEntity selectByPrimaryKey(Long id);

    SpiderHospitalLicenseMatchEntity selectByShopId(String shopId);

    /**
     * 获取所有已匹配的店铺id
     * @return
     */
    List<String> selectAllShopId();

    int updateByPrimaryKeySelective(SpiderHospitalLicenseMatchEntity record);

    int updateByPrimaryKey(SpiderHospitalLicenseMatchEntity record);
}